/**<
#5. Write a program that continues to asks the user to enter any number other than 5 until the user enters the number 5.
Then tell the user "Hey! you weren't supposed to enter 5!" and exit the program.
 */

 #include <iostream>
 using namespace std;

 void AskForFive()
 {
    cout << "Please enter character but 5" << endl; //ask the user to enter file
    int nNum = 0;
    cin >> nNum;
    //get input from the user while the number is not 5
    while (nNum != 5)
    {
        cout << "Thanks for not entering 5. Enter another." << endl;
        cin >> nNum; //this loops forever if you enter something other than a number.
    }
    cout << "You entered 5. You bastard.";
     //display message when the number is 5
 }
